package com.pjedu.nbmalluser.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.util.Date;

/**
 * (MallUser)实体类
 *
 * @author 汪洋
 * @since 2022-01-31 14:26:10
 */
@Data
@Builder
public class MallUser implements Serializable {
    private static final long serialVersionUID = 448200103872562614L;
    /**
     * 用户主键id
     */
    private Long userId;
    /**
     * 用户昵称
     */
    private String nickName;
    /**
     * 登陆名称(默认为手机号)
     */
    private String loginName;
    /**
     * MD5加密后的密码
     */
    private String passwordMd5;
    /**
     * 个性签名
     */
    private String introduceSign;
    /**
     * 收货地址
     */
    private String address;
    /**
     * 注销标识字段(0-正常 1-已注销)
     */
    private Integer isDeleted;
    /**
     * 锁定标识字段(0-未锁定 1-已锁定)
     */
    private Integer lockedFlag;
    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Tolerate
    public MallUser() {
    }
}

